package com.leihao.product.domian;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 商品分类
 */

public class ProductTypeLinkage {

    /**
     * 编号
     */
    private Integer productTypeId;

    /**
     * 父级编号
     */
    private Integer parentId;
    /**
     * 商品类型名称
     */
    private String typeName;
    /**
     * 子分类
     */
    private List<ProductTypeLinkage> list;

    public ProductTypeLinkage(Integer productTypeId, Integer parentId, String typeName, List<ProductTypeLinkage> list) {
        this.productTypeId = productTypeId;
        this.parentId = parentId;
        this.typeName = typeName;
        this.list = list;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public ProductTypeLinkage() {
    }

    public Integer getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(Integer productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public List<ProductTypeLinkage> getList() {
        return list;
    }

    public void setList(List<ProductTypeLinkage> list) {
        this.list = list;
    }

    public ProductTypeLinkage(Integer productTypeId, String typeName, List<ProductTypeLinkage> list) {
        this.productTypeId = productTypeId;
        this.typeName = typeName;
        this.list = list;
    }
}
